home *** CD-ROM | disk | FTP | other *** search
- Path: news.tu-ilmenau.de!usenet
- From: Lars Krueger <ai108@rz.tu-ilmenau.de>
- Newsgroups: comp.lang.c
- Subject: Re: Help with simple code
- Date: Wed, 17 Jan 1996 12:37:25 +0100
- Organization: Technische Universitaet Ilmenau
- Message-ID: <30FCDF75.373401FF@rz.tu-ilmenau.de>
- References: <4dbak5$oij@ionews.io.org> <tcpnntpd.16.1.16.0.51.40.2781597121.342670@the-fix.sos.on.ca>
- NNTP-Posting-Host: scenic-03.rz.tu-ilmenau.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (X11; I; Linux 1.2.13 i586)
-
- verneb@the-fix.sos.on.ca wrote:
- -- snip --
- > I >and here's the error:
- > I >
- > I >In function `main':
- > I >undefined reference to `pow'
- > I >
- > I >I don't understand. `pow' is a function, not a variable?
- > I >Can anyone tell me what's wrong?
- > I >
- -- snip --
-
- Hi.
-
- This is obviously a linker error. It means the linker - whitch "glues"
- the different object files (compiles *.C files) to a executable -
- can't find an object file which contains code for "pow".
- All you have to do is finding the library where pow is supposed to be
- inside and give this file name to the linker (using the MAKEFILE file
- or your project file or whatever your compiler wants).
-
- Hope that helps
-
- Lars.
-